package design.pattern.factory.abstractFactory;

/**
 * @description: 产品族-课程-java具体工厂
 * @author: liuzhangcheng
 **/
public class JavaCourseFactory implements ICourseFactory {
    /**
     * 录播视频
     *
     * @return
     */
    @Override
    public IVideo createVideo() {
        // init
        return new JavaVideoImpl();
    }

    /**
     * 课堂笔记
     *
     * @return
     */
    @Override
    public INode createNode() {
        // init
        return new JavaNodeImpl();
    }
}
